package com.example.ln.zyfypt_119ln.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.webkit.WebView;

import com.example.ln.zyfypt_119ln.R;

/**
 * Created by lenovo on 2017/5/21.
 */


    public class ViewArticleActivity extends AppCompatActivity {
        private int resid;
        private WebView webView;
        private String BASEURL="http://amicool.neusoft.edu.cn/";
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_view_article);
            System.out.println("----查看文章详情");

            resid  = getIntent().getIntExtra("resid",1);

            webView = (WebView)findViewById(R.id.webview);
            webView.loadUrl(BASEURL+"article.php/show/index/id/"+resid);
        }
    }


